export default {
  changeCity (state, city) {
    state.city = city;
    try {
      localStorage.city = city
    } catch (e) {
    }
  },
  // 点击左侧导航，选中对应的路由
  handleChangeRouter (state, router) {
    state.value = router;
    try {
      localStorage.value = router
    } catch (e) {
    }
  },
  // 保存登陆用户的角色;
  roleChange (state, roleId) {
    state.roleId = roleId;
    try {
      localStorage.roleId = roleId
    } catch (e) {
    }
  },
}
